package com.study_day01.entiry;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class CartItem {
    public CartItem(Drug drug) {
        this.drId = drug.getDrId();
        this.drName = drug.getDrName();
        this.drPrice = drug.getDrPrice();
        this.quantity =1;
    }

    private int drId;
    private String drName;
    private BigDecimal drPrice;
    private int quantity;
}
